package com.chat.service;

import com.chat.Local;
import com.chat.common.Message;
import com.chat.common.MessageType;
import com.chat.common.User;

import java.io.IOException;
import java.io.ObjectOutputStream;
import java.net.Socket;
/*]
    修改用户信息
 */
public class UpDateUserMessage {
     public static void updateusermessage(){
         Message message=new Message();
         message.setMesType(MessageType.MESSAGE_UPDATE_USER_ALL);
         message.setData(Local.user);

         ClientConnectServerThread clientConnectServerThread=
                 ManageClientConnectServerThread.getClientConnectServerThread(Local.user.getUsername());
           clientConnectServerThread.send(message);
     }
}
